<?php
if (isset(parent::$child_menu_list[parent::$main_menu_id])) {
    foreach (parent::$child_menu_list[parent::$main_menu_id] as $key1 => $ls1) {
        ?>
        <dl class="small_module">
            <dt onclick="dianji(<?php echo $key1; ?>)"><?php echo $ls1['Fname']; ?></dt>
            <dd <?php
        if (self::$second_menu_id == $key1) {
            echo 'style="display:block;"';
        }
        ?> id="bb<?php echo $key1; ?>">
                <?php
                if (isset(parent::$child_menu_list[$key1])) {
                    foreach (parent::$child_menu_list[$key1] as $ls2) {
                        ?>
                        <a href="<?php echo '?C=' . $ls2['Fclass'] . '&A=' . $ls2['Ffunction'] . '&way=' . $ls2['Fway']; ?>" class="<?php
                if (parent::$child_menu_id == $ls2['Fid']) {
                    echo 'bg_co';
                }
                        ?>"><?php echo $ls2['Fname']; ?></a>
                           <?php
                       }
                   }
                   ?>
            </dd>
        </dl>
        <?php
    }
}
?>